

#ifdef CPP
extern "C" int    __stdcall substrcpy(unsigned char *out, unsigned char *in, unsigned char c);
extern "C" int    __stdcall SPC_init();
extern "C" int    __stdcall SPC_close();
extern "C" int    __stdcall SPC_get(int *specarray);
extern "C" DWORD  __stdcall SPC_get_level(int chan, int linear, int smooth);
extern "C" void   __stdcall SPC_log(char * module, char * msg);
extern "C" void   __stdcall SPC_log_open();
extern "C" void   __stdcall SPC_log_close();
extern "C" void   __stdcall SPC_read_cfg(int callnum);
extern "C" int    __stdcall SPC_check_os(void);
#else
extern int    __stdcall substrcpy(unsigned char *out, unsigned char *in, unsigned char c);
extern int    __stdcall SPC_init();
extern int    __stdcall SPC_close();
extern int    __stdcall SPC_get(int *specarray);
extern DWORD  __stdcall SPC_get_level(int chan, int linear, int smooth);

extern void   __stdcall SPC_log(char * module, char * msg);
extern void   __stdcall SPC_log_open();
extern void   __stdcall SPC_log_close();
extern void   __stdcall SPC_read_cfg(int callnum);

extern int __stdcall SPC_check_os(void);

#endif // CPP

#define MAX_WIDTH 256
#define MAX_HEIGHT 32
#define SPC_UNUSED_TIME 2   // nr. seconds if display not called then stops recording

extern int spectrum_width,spectrum_height;

extern int SPC_Global_Debug;
extern int SPC_Global_AudioDevice,SPC_Global_AudioInput;
extern float SPC_Global_scale;
extern int SPC_Displaying;
extern int SPC_UseWasapi;
extern int SPC_Global_BlackChar;

extern int SPC_imin,SPC_imax,SPC_fmin,SPC_fmax,SPC_icount,SPC_fcount;
